package com.git.bcs.admin.system.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.baomidou.mybatisplus.mapper.Condition;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.git.bcs.admin.system.entity.SysUser;
import com.git.bcs.admin.system.service.SysUserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;

/**
 * <p>
 * 管理员表 前端控制器
 * </p>
 *
 * @author bcs
 * @since 2018-03-23
 */
@Controller
@RequestMapping("/sysUser")
public class SysUserController {

	
	@Autowired
	SysUserService userService;
	
	@GetMapping("/list")
	public String index(ModelMap m) {
		int count = userService.selectCount(Condition.create().setSqlSelect("sum(*)"));
		m.addAttribute("d", count);
		return "/index.html";
	}
}

